//
//  XLGCurrentUser.h
//  etionCBLogic
//
//  Created by wu jingxing on 13-6-7.
//  Copyright (c) 2013年 GuangZhouXuanWu. All rights reserved.
//


extern NSString *const CurrentUserCurrentUserHeadImageUpdateNotification;

@protocol CCurrentUserBaseAttributeDelegate <NSObject>

@property(nonatomic,retain) XMSNumberInt* userNumber;
@property(nonatomic,retain) NSString* userName;
@property(nonatomic,retain) NSString* positionJob;
@property(nonatomic,retain) NSString* headImagePath;
@property(nonatomic,retain) NSString* headImageURL;

@property(nonatomic,readonly) UIImage *defaultHeadImage;

@property(nonatomic,readonly) XLGContext* context;

@end

@interface CCurrentUser : NSObject

+ (void)initCurrentUser:(id<CCurrentUserBaseAttributeDelegate>)p;

+ (void)releaseCurrentUser;

+ (UIImage*)currentUserHeadImage;

+ (void)copyAndCacheNewHeadImagePath:(NSString*)filePath;

+ (void)copyAndCacheNewHeadImagePath:(NSString*)filePath withNewFileName:(NSString*)newFileName;

+ (id<CCurrentUserBaseAttributeDelegate>)currentUser;

@end
